package pallet

type PalletCbStateEnum string

const (
	/*货架笼箱状态枚举（用于描述货架上面放着什么）*/
	EMPTY   = "EMPTY"
	ECB_NC  = "ECB_NC"
	ECB_WC  = "ECB_WC"
	NFCB_WC = "NFCB_WC"
	NFCB_NC = "NFCB_NC"
	FCB_NC  = "FCB_NC"
	FCB_WC  = "FCB_WC"
	MDCB_NC = "MDCB_NC"
	MDCB_WC = "MDCB_WC"
	TCS     = "TCS"
	FULL    = "FULL"

	/*货架笼箱贴标状态枚举*/
	LABELING_TRUE  = "LABELING_TRUE"
	LABELING_FALSE = "LABELING_FALSE"
)

var palletEnumMap = map[PalletCbStateEnum]string{
	EMPTY:          "空货架",
	ECB_NC:         "空笼箱（不封盖）",
	ECB_WC:         "空笼箱（已封盖）",
	NFCB_WC:        "未满笼箱（封盖）",
	NFCB_NC:        "未满笼箱（不封盖）",
	FCB_NC:         "实笼箱（未封盖）",
	FCB_WC:         "实笼箱（已封盖）",
	MDCB_NC:        "误送笼箱（不是15袋）（不封盖）",
	MDCB_WC:        "误送笼箱（不是15袋）（已封盖）",
	TCS:            "顶盖垛",
	FULL:           "满货架",
	LABELING_TRUE:  "已贴标",
	LABELING_FALSE: "未贴标",
}

func (cbstateEnum PalletCbStateEnum) Value() string {
	if msg, ok := palletEnumMap[cbstateEnum]; ok {
		return msg
	}
	return "未知类型"
}
